<?php
/**
 * @package Curly
 * @subpackage Collections
 * @version 0.9
 * @link http://curly.codeplex.com/
 * @license http://curly.codeplex.com/license The MIT License
 * @author Dawid Zawada
 */

namespace Curly\Collections
{
    /**
     * Simple structure representing a key-value pair
     * 
     * Used internally, when the key is not of scalar type
     * and cannot be used as an array key (e.g. resource or object)
     * 
     * @internal
     * @package Curly
 	 * @subpackage Collections
     * @license http://curly.codeplex.com/license The MIT License
     */
    class KeyValuePair
    {
        /**
         * Key of the key-value pair
         * 
         * @var mixed
         */
        public $key;
        
        /**
         * Value of the key-value pair
         * 
         * @var mixed
         */
        public $value;
        
        /**
         * Creates new KeyValuePair instance with the given
         * key and value
         * 
         * @internal
         * @param mixed $key
         * @param mixed $value
         */
        public function __construct( $key, $value )
        {
            $this->key = $key;
            $this->value = $value;
        }
    }
}